* Most applications just need to turn on the
* #GtkFileChooser:do-overwrite-confirmation property (or call the
* gtk_file_chooser_set_do_overwrite_confirmation() function), and
- * they will automatically get a stock confirmation dialog.
+ * they will automatically get a standard confirmation dialog.
* Applications which need to customize this behavior should do
* that, and also connect to the #GtkFileChooser::confirm-overwrite
* signal.
* %GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN. If it determines
* that the user is satisfied with his choice of file name, it
* should return %GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME.
- * On the other hand, if it determines that the stock confirmation
+ * On the other hand, if it determines that the standard confirmation
* dialog should be used, it should return
* %GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM. The following example
* illustrates this.
g_object_interface_install_property (iface,
g_param_spec_boolean ("use-preview-label",
P_("Use Preview Label"),
- P_("Whether to display a stock label with the name of the previewed file."),
+ P_("Whether to display a label with the name of the previewed file."),
TRUE,
GTK_PARAM_READWRITE));
g_object_interface_install_property (iface,
/**
* gtk_file_chooser_set_use_preview_label:
* @chooser: a #GtkFileChooser
- * @use_label: whether to display a stock label with the name of the previewed file
+ * @use_label: whether to display a label with the name of the previewed file
*
- * Sets whether the file chooser should display a stock label with the name of
+ * Sets whether the file chooser should display a label with the name of
* the file that is being previewed; the default is %TRUE. Applications that
* want to draw the whole preview area themselves should set this to %FALSE and
* display the name themselves in their preview widget.
* gtk_file_chooser_get_use_preview_label:
* @chooser: a #GtkFileChooser
*
- * Gets whether a stock label should be drawn with the name of the previewed
+ * Gets whether a label should be drawn with the name of the previewed
* file. See gtk_file_chooser_set_use_preview_label().
*
* Returns: %TRUE if the file chooser is set to display a label with the
* If set to %TRUE, the @chooser will emit the
* #GtkFileChooser::confirm-overwrite signal when appropriate.
*
- * If all you need is the stock confirmation dialog, set this property to %TRUE.
+ * If all you need is the standard confirmation dialog, set this property to %TRUE.
* You can override the way confirmation is done by actually handling the
* #GtkFileChooser::confirm-overwrite signal; please refer to its documentation
* for the details.
* NULL);
* ]|
*
- * This will create buttons for “Cancel” and “Open” that use stock
+ * This will create buttons for “Cancel” and “Open” that use predefined
* response identifiers from #GtkResponseType. For most dialog
* boxes you can use your own custom response codes rather than the
* ones in #GtkResponseType, but #GtkFileChooserDialog assumes that
* appropriate.
*
* To summarize, make sure you use a
- * [stock response code][gtkfilechooserdialog-responses]
+ * [predefined response code][gtkfilechooserdialog-responses]
* when you use #GtkFileChooserDialog to ensure proper operation.
*/
}
static gboolean
-is_stock_accept_response_id (gint response_id)
+is_accept_response_id (gint response_id)
{
return (response_id == GTK_RESPONSE_ACCEPT ||
response_id == GTK_RESPONSE_OK ||
priv = gtk_file_chooser_dialog_get_instance_private (GTK_FILE_CHOOSER_DIALOG (dialog));
/* Act only on response IDs we recognize */
- if (is_stock_accept_response_id (response_id) &&
+ if (is_accept_response_id (response_id) &&
!priv->response_requested &&
!_gtk_file_chooser_embed_should_respond (GTK_FILE_CHOOSER_EMBED (priv->widget)))
{
* @title: (allow-none): Title of the dialog, or %NULL
* @parent: (allow-none): Transient parent of the dialog, or %NULL
* @action: Open or save mode for the dialog
- * @first_button_text: (allow-none): stock ID or text to go in the first button, or %NULL
+ * @first_button_text: (allow-none): text to go in the first button, or %NULL
* @...: response ID for the first button, then additional (button, id) pairs, ending with %NULL
*
* Creates a new #GtkFileChooserDialog. This function is analogous to